package com.project.service.Ipml;

import com.project.bean.SpeakBean;
import com.project.dao.ISpeakDao;
import com.project.dao.IUserDao;
import com.project.service.ISpeakServIce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SpeakServiceImpl implements ISpeakServIce {
    @Autowired
    private ISpeakDao dao;
    @Override
    public List<SpeakBean> addSpeak(SpeakBean speakBean) {
        dao.addSpeak(speakBean);
        return dao.findByProduct(speakBean.getProductBean().getId());
    }
}
